
import View=laya.ui.View;
import Dialog=laya.ui.Dialog;
module ui {
    export class GameMainUI extends View {
		public map:Laya.Image;
		public text_length:Laya.Label;
		public text_kill:Laya.Label;
		public mask_rank:Laya.Image;
		public ctrl_flash:Laya.Button;
		public ctrl_back:Laya.Image;
		public ctrl_rocker:Laya.Image;
		public ctrl_rocker_move:Laya.Image;

        public static  uiView:any ={"type":"View","props":{},"child":[{"type":"Image","props":{"var":"map","skin":"map/tile_map.png","pivotY":750,"pivotX":1500}},{"type":"Label","props":{"y":10,"x":10,"text":"长度："}},{"type":"Label","props":{"y":10,"x":44,"var":"text_length","text":"0"}},{"type":"Label","props":{"y":26,"x":10,"text":"击杀："}},{"type":"Label","props":{"y":26,"x":44,"var":"text_kill","text":"0"}},{"type":"Image","props":{"y":10,"x":489,"width":102,"var":"mask_rank","skin":"images/mask.png","height":133}},{"type":"Button","props":{"y":321,"x":511,"var":"ctrl_flash","stateNum":"2","skin":"images/control-flash.png","pivotY":40,"pivotX":40}},{"type":"Image","props":{"y":329,"x":85,"var":"ctrl_back","skin":"images/control-back.png","pivotY":40,"pivotX":40},"child":[{"type":"Image","props":{"y":40,"x":40,"var":"ctrl_rocker","skin":"images/control-rocker.png","pivotY":17.5,"pivotX":17.5}}]},{"type":"Image","props":{"y":357,"x":-32,"visible":false,"var":"ctrl_rocker_move","skin":"images/control-rocker.png","pivotY":17.5,"pivotX":17.5}}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameMainUI.uiView);
        }
    }
}

module ui {
    export class GameStartUI extends View {
		public background:Laya.Image;
		public skinRadio:Laya.RadioGroup;
		public btn_single:Laya.Button;
		public btn_net:Laya.Button;
		public nickname:Laya.Button;
		public neturl:Laya.Button;

        public static  uiView:any ={"type":"View","props":{"skin":"images/head2.png"},"child":[{"type":"Image","props":{"var":"background","skin":"images/s1-background.jpg","pivotY":297,"pivotX":594,"name":"background"},"child":[{"type":"Image","props":{"y":204.5,"x":394.5,"width":399,"skin":"images/s1-option-background.png","name":"option_background","height":211},"child":[{"type":"RadioGroup","props":{"y":50,"x":51,"var":"skinRadio","space":-3,"skin":"images/s1-radio.png","selectedIndex":0,"labels":"  红色,  蓝色,  绿色,  紫色,  棕色","labelPadding":"4","direction":"vertical"}},{"type":"Image","props":{"y":54,"x":133,"width":12,"skin":"images/head1.png","rotation":90,"height":12}},{"type":"Image","props":{"y":75,"x":133,"width":12,"skin":"images/head2.png","rotation":90,"height":12}},{"type":"Image","props":{"y":97,"x":133,"width":12,"skin":"images/head3.png","rotation":90,"height":12}},{"type":"Image","props":{"y":118,"x":133,"width":12,"skin":"images/head4.png","rotation":90,"height":12}},{"type":"Image","props":{"y":139,"x":133,"width":12,"skin":"images/head5.png","rotation":90,"height":12}},{"type":"Button","props":{"y":14,"x":234,"var":"btn_single","stateNum":"1","skin":"images/s1-btn1.png","labelPadding":"-20","labelBold":true,"label":"单人模式"}},{"type":"Button","props":{"y":113,"x":234,"var":"btn_net","stateNum":"1","skin":"images/s1-btn2.png","labelPadding":"-20","labelBold":true,"label":"多人模式"}},{"type":"Button","props":{"y":13,"x":46,"width":126,"var":"nickname","stateNum":"1","skin":"images/s1-input.png","label":"昵称","height":24}},{"type":"Button","props":{"y":166,"x":46,"width":126,"var":"neturl","stateNum":"1","skin":"images/s1-input.png","label":"192.168.1.60","height":24}},{"type":"Label","props":{"y":-31,"x":139.5,"text":"贪吃蛇小作战","fontSize":20,"font":"Microsoft Yahei","color":"#226eaa","bold":true}},{"type":"TextInput","props":{"y":190.5,"x":161.5,"text":"TextInput","skin":"comp/textinput.png"}}]}]}]};
        constructor(){ super()}
        createChildren():void {
        
            super.createChildren();
            this.createView(ui.GameStartUI.uiView);
        }
    }
}
